<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="uct" uri="/WEB-INF/uct.tld" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <%@ include file="/common/sale/include/common-base.jsp"%>		
  <title>${titleName}-运营管理</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <meta name="application-name" content="bootcss.com">
  <!-- Site CSS -->
  <style>
  </style>
</head>
<body class="hold-transition skin-yellow sidebar-mini">
<div class="wrapper">
  <!-- top start -->
  <%@include file="/common/sale/top.jsp" %>
  <!-- top end -->


  <!-- left start -->
  <%@include file="/common/sale/left.jsp" %>
  <!-- left end-->


   <div class="content-wrapper" style="background-color:#fff;">
  <div class="row">
  	<p style="height:30px;"></p>
	<!-- Main content -->
    <section class="container">
      <!-- Small boxes (Stat box) -->
      <div class="row" style="text-align:center;">
        <div class="col-sm-offset-1 col-lg-10">
          <!-- small box -->
          <div class="">
          	<img src="${ctx}/images/sale/zhuce-yw-04.jpg" style="height:400px;" class="img-responsive"/>
          </div>
        </div> 
        <!-- ./col -->
        <!-- ./col -->
      </div>
      <!-- /.row -->
    </section>
    
 	
 </div>
 </div>

  <!-- foot start -->
  <%@include file="/common/sale/foot.jsp" %>
  <!-- foot start -->
  
</div>

</body>
</html>

<script>
var clickMenu= 'index';
$(function () {
	
	getDataCount("trpCate","cateCount","");
	getDataCount("member","memberCount","");
	getDataCount("trpPro","proCount","");
	
	
	getDataCount("trpCate","cateCount","trpCate");
	getDataCount("member","memberCount","member");
	getDataCount("trpPro","proCount","trpPro");
});

function getDataCount(tableKey,id,auditType){
	var paramLoadData = {"doCode":"dymicSql","modelTypes":"s_"+tableKey};
	if("member"==auditType){
		paramLoadData = {"doCode":"dymicSql","modelTypes":"s_"+tableKey,"member.w_auditStatus":"10"};//待审核
	}
	$.ajax({
		type:'get',
		url:common_list_url,
	    data:paramLoadData,
	    dataType:'json',
	    success: function(myData){
	    	if(""!=auditType){
	    		$("#audit_count_"+tableKey).text(myData.total);
	    	}else{
	    		$("#"+id).text(myData.total);
	    	}
	    	console.log(myData);
		}
	});	
}

</script>
